package com.cnap.model.schedule.engine;

/**
 * 算法引擎-验证结果
 *
 * @author xc
 **/
public class ValidateResult {
    // 描述
    private String desc;
    // 是否验证通过
    private boolean pass;
    // 集群
    private String cluster;
    // detail
    private String detail;

    /**
     * get
     *
     * @return Desc
     */
    public String getDesc() {
        return desc;
    }

    /**
     * set
     *
     * @param desc desc
     */
    public void setDesc(String desc) {
        this.desc = desc;
    }

    /**
     * get
     *
     * @return Pass
     */
    public boolean isPass() {
        return pass;
    }

    /**
     * set
     *
     * @param pass pass
     */
    public void setPass(boolean pass) {
        this.pass = pass;
    }

    /**
     * get
     *
     * @return Cluster
     */
    public String getCluster() {
        return cluster;
    }

    /**
     * set
     *
     * @param cluster cluster
     */
    public void setCluster(String cluster) {
        this.cluster = cluster;
    }

    /**
     * get
     *
     * @return Detail
     */
    public String getDetail() {
        return detail;
    }

    /**
     * set
     *
     * @param detail detail
     */
    public void setDetail(String detail) {
        this.detail = detail;
    }

    /**
     * 拼接信息
     *
     * @return 信息
     */
    public String getDetailMessage() {
        return cluster + "：" + desc + "，" + detail;
    }
}
